package my.geocaching.rpg;

import java.io.IOException;

import org.jsoup.Connection;
import org.jsoup.Connection.Method;
import org.jsoup.Jsoup;
import org.jsoup.helper.HttpConnection;
import org.jsoup.nodes.Document;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class GeocachingRPGActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        Document doc = null;
		try {
			doc = Jsoup.connect("https://www.geocaching.com/login/default.aspx").get();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
        String title = doc.title();
        
        TextView txt = (TextView) findViewById(R.id.textView1);
        
        txt.setText(title);
    }
}